package com.bz.cart.feign;

import com.bz.cart.feign.fallback.CommonItemFeignClientFallbackFactory;
import com.bz.pojo.TbItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 命令规范: 服务名称 + FeignClient
 */
@FeignClient(value = "common-item",fallbackFactory = CommonItemFeignClientFallbackFactory.class)
public interface CommonItemFeignClient {

    //--------------------------- /service/item --------------------------
    @PostMapping("/service/item/selectItemInfo")
    TbItem selectItemInfo(@RequestParam("itemId") Long itemId);
}
